<template>
  <div class="box">
    <h2>我是xxx组件</h2>
  </div>
</template>
<script lang="ts" setup name="xxx">
for(let i=0;i<10;i++){
  console.log(i)
}
</script>
<style scoped>
.box {
  width: 100px;
  height: 100px;
  background-color: red;
  h1 {
    color: aliceblue;
  }
}
</style>
